From: Jim Blandy Date: Fri, 28 May 1993 04:52:55 +0000 (+0000) Subject: * configure.in: If srcdir is '.', then try using PWD to make it X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~95860 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=c9ed10f6f5653c3ce888a7f106c6a231a84f6521;p=emacs.git * configure.in: If srcdir is '.', then try using PWD to make it absolute. * configure.in: Include ${srcdir} in the printed report, to help people notice if it's an automounter path. --- diff --git a/configure1.in b/configure1.in index 84f8846d568..f470b1e7c0f 100755 --- a/configure1.in +++ b/configure1.in @@ -333,6 +333,14 @@ esac #### give you automounter prefixes, which can go away. case "${srcdir}" in /* ) ;; + . ) + ## We may be able to use the $PWD environment variable to make this + ## absolute. But sometimes PWD is inaccurate. + if [ "${PWD}" != "" ] && [ "`(cd ${PWD} ; pwd)`" = "`pwd`" ] ; then + srcdir="$PWD" + else + srcdir="`(cd ${srcdir}; pwd)`" + ;; * ) srcdir="`(cd ${srcdir}; pwd)`" ;; esac @@ -1113,6 +1121,7 @@ echo " Configured for \`${configuration}'. + Where should the build process find the source code? ${srcdir} What operating system and machine description files should Emacs use? \`${opsysfile}' and \`${machfile}' What compiler should emacs be built with? ${CC} ${CFLAGS}